<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ page import="com.scalar.chiptrack.utils.ConfigManager" %>
<%@ page import="com.scalar.chiptrack.commons.Constants" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<chiptrack:checkLogon sourcePage="/inventoryReceive.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();
 String userTypeChiptrac = Constants.USER_TYPE_CHIPTRAC + ""; try{ %>

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<script language="javascript">

function confirm()
{
    var form = document.inventoryReceiveform;
    form.action.value   = "confirm";
	form.submit();
}
</script>
<!-- Top Header Start-->
<%--<%@ include file="/jsp/includes/header.jsp" %>--%>
<!-- Top Header Start-->
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/header.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/includes/extHeader.jsp" %>
    </logic:notEqual>
<!-- Top Header End-->
<!-- Top Header End-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
<!-- Side Navigation start -->
<%--<%@ include file="/jsp/operations/dataentryMenu.jsp" %>--%>
    <logic:equal value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/operations/dataentryMenu.jsp" %>
    </logic:equal>
    <logic:notEqual value="<%=userTypeChiptrac%>" name="user" property="userType" scope="session">
        <%@ include file="/jsp/operations/ext_user_dataentryMenu.jsp" %>
    </logic:notEqual>
 <!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">
<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<html:form name="inventoryReceiveform" type="com.scalar.chiptrack.operations.dataentry.inventoryReceive.forms.InventoryReceiveForm" action="/inventoryReceive">
<input type="hidden" name="action" value="<%= (String)request.getAttribute("action")%>">

<TABLE border="0" width="95%" align=center>
<TR>
        <TD colspan='4'>
            <FONT class='NArialL'><FONT color='red'>Are you sure, you want to <font color="blue">Confirm</font> this Inventory to Receive &nbsp;&nbsp;</FONT></FONT>
            <a href='javascript:confirm();' onmouseover="window.status='Confirm this Inventory Receive';return true" onmouseout="window.status='';return true"><img src='<%=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="<%=chipTracContext%>/inventoryReceive.do" onMouseOver="window.status='Go Back to Main Inventory Receive Search';return true" onMouseOut="window.status='';return true">
                <img src='<%=chipTracContext%>/jsp/includes/images/cancel.gif' border='0'>
            </a>
        </TD>
</TR>
 <TR>
        <TD COLSPAN="4"><IMG SRC="<%=chipTracContext%>/jsp/includes/images/spacer.gif" HEIGHT=20></TD>
</TR>
<TR><TD colspan=4 class="NArialW" align="center"> Inventory Receive</TD></TR>
<TR><TD colspan=4>&nbsp;</TD></TR>
<TR><TD COLSPAN=4>&nbsp;</TD></TR>
<TR><TD colspan=4>
  <chiptrack:info styleClass="NArialL" />
  <chiptrack:errors styleClass="NArialL" />
  <chiptrack:messages type="info" styleClass="NArialL" />
</TD></TR>
<TR><TD>
<TABLE  border="0" width="100%" cellpadding="1" cellspacing="1">
<TR>
    <TD COLSPAN="4"><IMG SRC="<%=chipTracContext%>/jsp/includes/images/spacer.gif" HEIGHT=20></TD>
</TR>
     <nested:iterate id="transitInfo" property="transitLotsList" type="com.scalar.chiptrack.operations.dataentry.InTransitLots">
         <nested:hidden property="checked" name="transitInfo"/>
     </nested:iterate>
     <TR>
         <TD colspan='4'>
                <table width="100%" align="left" cellpadding="2" cellspacing="2" border="0">
                    <tr bgcolor="#993333" align = "center">
                        <td width="13%" class='NArialL' nowrap><font color="#FFFFFF">Part Number</font></td>
                        <td width="10%" class='NArialL' nowrap><font color="#FFFFFF">Lot No#</font></td>
                        <td width="10%" class='NArialL' nowrap><font color="#FFFFFF">Fab LotNo#</font></td>
                        <td width="10%" class='NArialL' nowrap><font color="#FFFFFF">From Vendor</font></td>
                        <td width="10%" class='NArialL'><font color="#FFFFFF">Qty In</font></td>
                        <td width="10%" class='NArialL'><font color="#FFFFFF">Receive Vendor </font></td>
                        <td width="10%" class='NArialL'><font color="#FFFFFF">Receive Process</font></td>
                        <logic:notEqual value="Assembly" name="inventoryReceiveform" property="processType">
                        <td width="10%" class='NArialL'><font color="#FFFFFF">Date Code</font></td>
                        </logic:notEqual>
                    </tr>

                    <logic:iterate id="subTotalList" name="subTotalMap">
                       
                       <logic:iterate id="wipInfo" indexId="iterateIdx" name="subTotalList" property="key" type="com.scalar.chiptrack.operations.dataentry.InTransitLots">
                        <tr bgcolor="#DEE1E2">
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="partNumber"/></font></td>
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="lotNumber"/></font></td>
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="fabLotNumber"/></font></td>
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="vendorName"/></font></td>
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="shipQty"/></font></td>
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="nextLocation"/></font></td>
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="nextProcessType"/></font></td>
                             <logic:notEqual value="Assembly" name="inventoryReceiveform" property="processType">
                            <td><font class='NArialL'><bean:write name="wipInfo" property ="dateCode"/></font></td>
                            </logic:notEqual>
                        </tr>
                       </logic:iterate>
                        <tr>
                            <td colspan="4" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                                Sub Total
                            </td>

                            <bean:define id="subTotal" name="subTotalList" property="value" type="com.scalar.chiptrack.sales.SubTotal"/>
                            <td colspan="1" width="15%" bgcolor="#FFFFFF" class="NArialL" align="right">
                                <bean:write name="subTotal" property="subTotalQty" />
                            </td>
                            <TD COLSPAN="3">&nbsp;</TD>
                        </tr>
                    </logic:iterate>
                    <TR>
                        <TD COLSPAN="8"><IMG SRC="<%=chipTracContext%>/jsp/includes/images/spacer.gif" HEIGHT=20></TD>
                    </TR>
              </table>
         </TD>
    </TR>

</TABLE>
</TD>
</TR>
</TABLE>
</html:form>
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
<%
    }
    catch(Exception e)
    {
        e.printStackTrace();
    }
%>